﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Template.Infrastructure.EntityHistory;

namespace Template.Infrastructure.Audits
{
    ///<summary>
    ///审计存储
    /// </summary>
    public interface IAuditStore
    {
        /// <summary>
        /// 保存审计
        /// </summary>
        /// <param name="audit"></param>

        void Save(AuditChangeEntry audit);

        /// <summary>
        /// 异步保存审计
        /// </summary>
        /// <param name="audit"></param>
        /// <returns></returns>
        Task SaveAsync(AuditChangeEntry audit);
    }
}
